<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>


  export default {
    created() {
      // if (!this.$store.state.user.token){
      //   this.$router.push('/unLogin')
      // }
      console.log("每次刷新都执行一次")
    },
    mounted() {

    }
  }
</script>

<style lang="less">
  .box{
    width: 1200px;
    margin: auto;
  }
  .text-left{
    text-align: left;
  }
  .text-right{
    text-align: right;
  }
  .text-center{
    text-align: center;
  }
  body{ overflow-x: hidden;}

  #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  height: 100%;
}


#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
